//
//  ModeSelectScene.m
//  SpeedTap
//
//  Created by Chi Ho Chiu on 18/12/11.
//  Copyright 2011 Individual. All rights reserved.
//

#import "ModeSelectScene.h"
#import "GameManager.h"

@implementation ModeSelectScene
@synthesize layer;

-(id) init
{
    if( (self = [super init]) )
    {
        self.layer = [ModeSelectLayer node];
        layer.delegate = self;
        
        [self addChild:layer];
    }
    return self;
}

-(void) dealloc
{
	[layer release];
	
	[super dealloc];
}

#pragma mark - ModeSelectLayerDelegate
-(void) onStoryModeSelected
{
	[[GameManager sharedGameManager] replaceScene:kGAME_SCENE_LEVEL_SELECT];
}

-(void) onChallengeModeSelected
{
	
}

@end
